n = int(input())
if n<10:
    s = n * 2.5
else:
    s = n * 2.5 * 0.8

print(format(s,".2f"))